function Deletefile(name) {
    console.log(name)
    $.ajax({
            url: "/DeleteFile",
            type: "POST",
            data: {name: name},
            success: function (result) {
                console.log(result);
                if (result["error"] == undefined) {
                    alert("删除成功!");
                    window.location.reload()
                } else {
                    alert("删除失败!")
                }
            }
        }
    )
}


function Upload() {
    $("#uploadfile").ajaxSubmit(function (data) {
        console.log(data);
        if (data["error"] == undefined) {
            alert("上传成功!");
            window.location.reload()
        } else {
            alert("上传失败!")
        }
    });
}